package com.wonder;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.image.Image;

/**
 * @author jinrong.wang
 * @ 启动类
 * @create 2019-07-08 15:06
 */
public class MyApplication extends Application {
    static private Stage primaryStage;
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        this.primaryStage = primaryStage;
        primaryStage.setTitle("excel文件比对");

        Parent root = FXMLLoader.load(getClass().getResource("/MySceneController.fxml"));
        Scene scene = new Scene(root, 918.4, 599.6);
        primaryStage.setScene(scene);
        Image image = new Image(getClass().getResourceAsStream("/excel.png"));
        primaryStage.getIcons().add(image);
        primaryStage.show();
    }
}